package com.success.application.api;

import android.os.Handler;

import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.TextHttpResponseHandler;
import com.success.application.common.param.Params;
import com.success.application.ground.IndexFragment;

import cz.msebera.android.httpclient.HttpEntity;
import cz.msebera.android.httpclient.entity.StringEntity;

/**
 * Created by ChrisWong on 2017/2/6.
 */

public class YuanbaoApi {
    //活动列表
    public static void getActivityList(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/listDataHdzx",params,mHandler);
    }
    //用户登录
    public static void getUserLogin(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/loginApp",params,mHandler);
    }
    //用户注册
    public static void getUserRegister(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/addUserApp",params,mHandler);
    }
    //修改用户信息
    public static void updateUser(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/updateUser",params,mHandler);
    }
    //保存头像
    public static void saveTx(Params params, TextHttpResponseHandler mHandler) throws Exception {
        //params.setUseJsonStreamer(true);
        ApiHttpClient.post("zcurd/mobile/uploadFileApp",params,mHandler);
//        ApiHttpClient.post("zcurd/fileUpload/upload",params,mHandler);
    }
    //登录名校验
    public static void checkYhm(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/checkYhm",params,mHandler);
    }
    //活动详情
    public static void getActivityDetails(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/detailHdxq",params,mHandler);
    }
    //添加活动报名
    public static void addBm(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/addHdzxBm",params,mHandler);
    }
    //活动报名的列表
    public static void listBmData(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/listBmDataApp",params,mHandler);
    }
    //兼职列表
    public static void getJobList(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/listDataJz",params,mHandler);
    }
    //兼职详情
    public static void getJobDetails(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/detailJz",params,mHandler);
    }
    //表白愿望列表
    public static void getLoveList(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/listDataXyjy",params,mHandler);
    }
    //表白愿望详情
    public static void getLoveDetails(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/detailXyjy",params,mHandler);
    }
    //发布表白愿望
    public static void addXyjy(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/addXyjy",params,mHandler);
    }
    //求助列表
    public static void getHelpList(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/listDataHelp",params,mHandler);
    }
    //求助详情
    public static void getHelpDetails(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/detailHelp",params,mHandler);
    }
    //社团列表
    public static void getNoticeList(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/listDataSthd",params,mHandler);
    }
    //社团详情
    public static void getNoticeDetails(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/detailSthd",params,mHandler);
    }
    //发布求助
    public static void pubHelp(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/addHelp",params,mHandler);
    }
    //朋友圈列表
    public static void listDataPyq(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/listDataPyq",params,mHandler);
    }
    //朋友圈详情
    public static void detailPyq(Params params, TextHttpResponseHandler mHandler) throws Exception {
        ApiHttpClient.post("zcurd/mobile/detailPyq",params,mHandler);
    }
    //朋友圈滚动图
    public static void getBannerList(Params params, TextHttpResponseHandler mHandler) {
        ApiHttpClient.post("zcurd/mobile/listDataGdt",params,mHandler);
    }
    //对朋友圈进行评论
    public static void addPl(Params params, TextHttpResponseHandler mHandler) {
        ApiHttpClient.post("zcurd/mobile/addPl",params,mHandler);
    }
    //对朋友圈进行点赞
    public static void pubAddDz(Params params, TextHttpResponseHandler mHandler) {
        ApiHttpClient.post("zcurd/mobile/addDz",params,mHandler);
    }
    //对朋友圈取消点赞
    public static void qxDz(Params params, TextHttpResponseHandler mHandler) {
        ApiHttpClient.post("zcurd/mobile/qxDz",params,mHandler);
    }
    //对朋友圈评论进行删除
    public static void qxPl(Params params, TextHttpResponseHandler mHandler) {
        ApiHttpClient.post("zcurd/mobile/qxPl",params,mHandler);
    }
    //发布朋友圈/
    public static void getNewsList(Params params, TextHttpResponseHandler mHandler) {
        ApiHttpClient.post("zcurd/mobile/addpyq",params,mHandler);
    }
}
